package com.nlelpct.manage.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 员工角色关联表
 * </p>
 *
 * @author 小马
 * @since 2023-07-12
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_employee_and_role")
public class SysEmployeeAndRole extends Model<SysEmployeeAndRole> {

    private static final long serialVersionUID = 1L;

    /**
     * 员工id
     */
    @TableId(value = "employee_id", type = IdType.ASSIGN_UUID)
    private String employeeId;

    /**
     * 角色id
     */
    private String roleId;


    public static final String EMPLOYEE_ID = "employee_id";

    public static final String ROLE_ID = "role_id";


}
